package cn.gson.springboot.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the health_appointment database table.
 * 
 */
@Entity
@Table(name="health_appointment")
@NamedQuery(name="HealthAppointment.findAll", query="SELECT h FROM HealthAppointment h")
public class HealthAppointment implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="appo_no")
	private int appoNo;

	@Column(name="appo_people")
	private String appoPeople;

	@Column(name="appo_status")
	private int appoStatus;

	@Column(name="appo_time")
	private Timestamp appoTime;
	
	//自主体检
	@OneToMany(mappedBy="healthAppointment")
	private List<ChargemoneyDetail> chargemoneyDetails;

	//bi-directional many-to-one association to HealthProject
	@ManyToOne
	@JoinColumn(name="project_no")
	private HealthProject healthProject;

	//bi-directional many-to-one association to HealthMeal
	@ManyToOne
	@JoinColumn(name="meal_no")
	private HealthMeal healthMeal;

	//bi-directional many-to-one association to ClinicCard
	@ManyToOne
	@JoinColumn(name="clinic_id")
	private ClinicCard clinicCard;

	public HealthAppointment() {
	}

	public int getAppoNo() {
		return this.appoNo;
	}

	public void setAppoNo(int appoNo) {
		this.appoNo = appoNo;
	}

	public String getAppoPeople() {
		return this.appoPeople;
	}

	public void setAppoPeople(String appoPeople) {
		this.appoPeople = appoPeople;
	}

	public int getAppoStatus() {
		return this.appoStatus;
	}

	public void setAppoStatus(int appoStatus) {
		this.appoStatus = appoStatus;
	}

	public Timestamp getAppoTime() {
		return this.appoTime;
	}

	public void setAppoTime(Timestamp appoTime) {
		this.appoTime = appoTime;
	}

	public HealthProject getHealthProject() {
		return this.healthProject;
	}

	public void setHealthProject(HealthProject healthProject) {
		this.healthProject = healthProject;
	}

	public HealthMeal getHealthMeal() {
		return this.healthMeal;
	}

	public void setHealthMeal(HealthMeal healthMeal) {
		this.healthMeal = healthMeal;
	}

	public ClinicCard getClinicCard() {
		return this.clinicCard;
	}

	public void setClinicCard(ClinicCard clinicCard) {
		this.clinicCard = clinicCard;
	}

	public List<ChargemoneyDetail> getChargemoneyDetails() {
		return chargemoneyDetails;
	}

	public void setChargemoneyDetails(List<ChargemoneyDetail> chargemoneyDetails) {
		this.chargemoneyDetails = chargemoneyDetails;
	}
	
	

}